﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using blackhouse.BlackApart.Business.Opinions;

namespace blackhouse.BlackApart.Web.Navigation {
    public class DefaultNavigationProvider : NavigationProvider {

        protected override UrlVisitor GetUrlVisitor(IOpinion opinion) {
            DefaultUrlOpinionVisitor v = new DefaultUrlOpinionVisitor();
            opinion.Visit(v);
            return v;
        }

        protected override UrlVisitor GetUrlVisitor(SearchState search) {
            DefaultUrlSearchStateVisitor v = new DefaultUrlSearchStateVisitor();
            search.Visit(v);
            return v;
        }

        protected override UrlVisitor GetUrlVisitor(ReservationPage page) {
            DefaultUrlReservationPageVisitor v = new DefaultUrlReservationPageVisitor();
            page.Visit(v);
            return v;
        }

        public override ReservationPage GetReservationPageFromRequest() {
            return null;
        }

    }
}